package cn.ad.exception;

public class StrategyValidateException extends ValidateException{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public static enum ErrorCode implements BaseErrorCode{

		STRATEGY_NOTFOUND_STATUS(20401,"Service.err.strategy.status.not.found"),
		STRATEGY_NOTFOUND(20401,"Service.err.strategy.not.found"),
		STRATEGY_NOT_SPACE(20401,"Service.err.strategy.adspace.can.empty"),
		STRATEGY_NOT_CREATIVE(20401,"Service.err.strategy.creativity.not.empty"),
		STRATEGY_REPEAT(20401,"Service.err.strategy.name.repeat"),
		STRATEGY_STARTDATE_WARNNING(20401,"Service.err.strategy.start.date"),
		STRATEGY_ENDDATE_WARNNING(20401,"Service.err.strategy.end.date"),
		STRATEGY_RESOURCE_EDIT_WARNNING(20401,"Service.err.strategy.resource.type"),
		STRATEGY_STRATEGYGROUP_NOTFOUND(20401,"Service.err.strategy.group.not.found"),
		STRATEGY_CREATIVEGROUP_NOTFOUND(20401,"Service.err.createive.group.not.found"),
		STRATEGY_CREATIVE_NOTFOUND(20401,"Service.err.createive.not.found"),
		STRATEGY_STATUS(20401,"Service.err.status.update"),
		STRATEGY_CONFIRM(30002,"Service.err.strategy.date"),
		STRATEGY_DATE(20401,"Service.err.strategy.status.date"),

		STRATEGY_AREAS(20401,"Service.err.strategy.area"),
		STRATEGY_CONNECTION(20401,"Service.err.strategy.connection"),
		STRATEGY_OSTYPE(20401,"Service.err.strategy.os"),
		STRATEGY_OPERATOR(20401,"Service.err.strategy.operator"),
		STRATEGY_INTERESTS(20401,"Service.err.strategy.interest"),
		STRATEGY_AGE(20401,"Service.err.strategy.age"),
		STRATEGY_INCOME(20401,"Service.err.strategy.income"),
		STRATEGY_EDUCATIONS(20401,"Service.err.strategy.education"),
		STRATEGY_GENDERS(20401,"Service.err.strategy.gender"),
		STRATEGY_MARRIAGE(20401,"Service.err.strategy.marriage");

		private int value;
		
		private String desc;

		private ErrorCode(int value, String desc) {
			this.value = value;
			this.desc = desc;
		}

		public int getValue() {
			return value;
		}

		public String getDesc() {
			return desc;
		}
	}
	
	public StrategyValidateException(BaseErrorCode code) {
		super(code);
	}
	
	public StrategyValidateException() {
		super();
	}

	public StrategyValidateException(String message, Throwable cause, boolean enableSuppression,
                                     boolean writableStackTrace) {
		super(message, cause, enableSuppression, writableStackTrace);
	}

	public StrategyValidateException(String message, Throwable cause) {
		super(message, cause);
	}

	public StrategyValidateException(String message) {
		super(message);
	}

	public StrategyValidateException(Throwable cause) {
		super(cause);
	}
	
	
}
